﻿<!-- submit -->
@if (!HttpContext.Current.User.Identity.IsAuthenticated)
{
<div class="pull-right top-right">
    <a href="/account/login">登录</a> | <a href="/account/register">注册</a>
</div>
}
else
{
    LunwenYun.Infrastructure.Entities.Entity.User user =
        new LunwenYun.Infrastructure.Entities.Entity.User().Find(HttpContext.Current.User.Identity.Name);
    if (user != null)
    {
<div class="pull-right top-right">
    @if(user.SystemRole == LunwenYun.Infrastructure.Entities.Enum.UserRole.Member)
    {
        <a href="/m/authorcenter">@user.NickName，欢迎您</a>
    }
    else if(user.SystemRole == LunwenYun.Infrastructure.Entities.Enum.UserRole.PaperAgent)
    {
        <a href="/o/authorcenter">@user.NickName，欢迎您</a>
    }
    else if (user.SystemRole == LunwenYun.Infrastructure.Entities.Enum.UserRole.Admin)
    {
        <a href="/admin/index">@user.NickName，欢迎您</a>
    }
     | <a href="/account/logout">注销</a>
</div>
    }
}